package tt.com.bodybeautymanager.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import tt.com.bodybeautymanager.mapper.DeadCosmeticMapper;
import tt.com.bodybeautymanager.service.PlasticSurgerysuccess;
import tt.com.common.enums.Status;
import tt.com.common.model.DeadCosmetic;
import tt.com.common.util.CommonResult;

import java.util.Date;

@Service
public class PlasticSurgerysuccessImpl extends ServiceImpl<DeadCosmeticMapper,DeadCosmetic> implements PlasticSurgerysuccess {
    @Override
    public CommonResult updatesuccesstime(DeadCosmetic deadCosmetic,Date lasttime, String lastupuserid) {
        if (deadCosmetic==null){
            return CommonResult.buildR(Status.DEFAULT,"没有该数据，无法修改");
        }else
            baseMapper.updateById(deadCosmetic);
        return CommonResult.buildR(Status.OK,"修改成功");

    }
}
